﻿using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Abp.Application.Services;
using Abp.Application.Services.Dto;
using LeadThing.AbpZeroTemplate.CaseCategorys.Dtos;
using LeadThing.AbpZeroTemplate.Dto;

namespace LeadThing.AbpZeroTemplate.CaseCategorys
{
    /// <summary>
    /// 矛盾纠纷案例菜单表服务接口
    /// </summary>
    public interface ICaseCategoryAppService : IApplicationService
    {
        #region 扩展方法

        /// <summary>
        /// 获取全部纠纷案例数据加载页面数据
        /// </summary>
        /// <returns></returns>
        List<CaseCategoryListDto> GetAllCaseCategorysLoadPage(GetCaseCategoryInput input);

        /// <summary>
        /// 获取全部案例
        /// </summary>
        /// <returns></returns>
        Task<ListResultDto<CaseCategoryListDto>> GetCaseCategorys();

        /// <summary>
        /// 获取全部地区树形数据
        /// </summary>
        /// <returns></returns>
        List<ComboboxItemDto> GetCaseCategoryTree();

        #endregion

        #region 矛盾纠纷案例菜单表管理

        /// <summary>
        /// 根据查询条件获取矛盾纠纷案例菜单表分页列表
        /// </summary>
        Task<PagedResultDto<CaseCategoryListDto>> GetPagedCaseCategorysAsync(GetCaseCategoryInput input);

        /// <summary>
        /// 通过Id获取矛盾纠纷案例菜单表信息进行编辑或修改 
        /// </summary>
        Task<GetCaseCategoryForEditOutput> GetCaseCategoryForEditAsync(NullableIdDto<long> input);

        /// <summary>
        /// 通过指定id获取矛盾纠纷案例菜单表ListDto信息
        /// </summary>
        Task<CaseCategoryListDto> GetCaseCategoryByIdAsync(EntityDto<long> input);



        /// <summary>
        /// 新增或更改矛盾纠纷案例菜单表
        /// </summary>
        Task CreateOrUpdateCaseCategoryAsync(CreateOrUpdateCaseCategoryInput input);





        /// <summary>
        /// 新增矛盾纠纷案例菜单表
        /// </summary>
        Task<CaseCategoryEditDto> CreateCaseCategoryAsync(CaseCategoryEditDto input);

        /// <summary>
        /// 更新矛盾纠纷案例菜单表
        /// </summary>
        Task UpdateCaseCategoryAsync(CaseCategoryEditDto input);

        /// <summary>
        /// 删除矛盾纠纷案例菜单表
        /// </summary>
        Task DeleteCaseCategoryAsync(EntityDto<long> input);

        /// <summary>
        /// 批量删除矛盾纠纷案例菜单表
        /// </summary>
        Task BatchDeleteCaseCategoryAsync(List<long> input);

        #endregion

        #region Excel导出功能

        /// <summary>
        /// 获取矛盾纠纷案例菜单表信息转换为Excel
        /// </summary>
        /// <returns></returns>
        Task<FileDto> GetCaseCategoryToExcel();

        #endregion

    }
}
